import  random
list = [[1,2,5,3,8,4],[2,5,2,9,4]]
print(list)
for item in list:
    random.shuffle(item)

print(list)